import styled from 'styled-components'

export const HomeWrapper = styled.div`
  overflow: hidden;
  width: 960px;
  margin: 0 auto 20px auto;
`
export const HomeLeft = styled.div`
  float:left;
  margin-left: 15px;
  margin-top: 30px;
  width:625px;
  .swiper-img{
    width:100%;
    height:270px;
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
  }
`

export const TopicWrapper = styled.div`
  border-bottom: 1px solid #f0f0f0;
`

export const TopicItem = styled.div`
  display: inline-block;
  margin: 0 26px 18px 0;
  height: 32px;
  background-color: #f7f7f7;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
  .topic-item-img{
    display:inline-block;
    height:32px;
    width:32px;
    vertical-align: middle;
  }
  .topic-item-name{
    display: inline-block;
    padding: 0 11px 0 6px;
    font-size: 14px;
  }
`

export const ListWrapper = styled.div`
`

export const ListOuter = styled.ul`
    margin: 0;
    padding: 0;
    list-style: none;
`

export const ListInner = styled.li`
  position: relative;
  width: 100%;
  margin: 0 0 15px;
  padding: 15px 2px 20px 0;
  border-bottom: 1px solid #f0f0f0;
  word-wrap: break-word;
  .list-img{
    position:absolute;
    right:5px;
    top:50%;
    height:100px;
    width:125px;
    margin-top:-50px;
    border-radius: 4px;
  }
`

export const ListCotent = styled.div`
  padding-right: 140px;
  line-height:20px;
  box-sizing: border-box;
`

export const ListCotentTitle = styled.span`
  margin: -7px 0 4px;
  display: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color:#000000
`

export const ListCotentMain = styled.p`
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 24px;
  color: #999
`
export const ListCotentAnthor = styled.div`
  padding-right: 0!important;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
`

export const ListCotentAnthorInner = styled.span`
  display:inline-block;
  margin-right: 10px;
  color: #b4b4b4;
  .iconfont{
    font-size: 8px;
    margin-right:2px;
  }
`

export const MoreList = styled.div`
  margin:10px auto;
  width:100%;
  height:24px;
  line-height:24px;
  font-size:16px;
  background:#939393
  color:#ffffff;
  border:1px solid #969696
  border-radius: 12px;
  text-align:center;
`

export const SwiperWrapper = styled.div`
  background: #8080c0
`

export const HomeRight = styled.div`
  float:left;
  margin-left: 35px;
  margin-top: 30px;
  width:270px;
`

export const RecommendWrapper = styled.div`
  margin-top: -4px;
  padding-bottom: 4px;
  min-height: 228px;
`
export const RecommendItem = styled.a`
  .recommend-img{
    width: 100%;
    min-height: 50px;
    margin-bottom: 4.5px;
    border-radius: 4px;
  }
`

export const WriterWrapper = styled.div`
`
export const WriterHeader = styled.div`
  overflow:hidden;
  .header-left{
    float:left;
    font-size: 13px;
    color: #969696;
  }
  .header-right{
    float: right;
    display: inline-block;
    font-size: 14px;
    color: #969696;
  }
`

export const WriterContent = styled.div`
`

export const WriterItem = styled.div`
  position:relative;
  margin:10px 0 10px 10px;
  .writer-item-img{
    display:block;
    width:48px;
    height:48px;
    border-radius:50%;
  }
  .writer-item-desc{
    position: absolute;
    top:0;
    left:0;
    width:calc(100% - 60px);
    height:48px;
    margin-left: 60px;
    .writer-item-attention{
      float:right;
      margin-top: 5px;
      padding: 0;
      font-size: 13px;
      color: #42c02e;
    }
    .writer-item-info{
      position:absolute;
      top: calc(50% - 20px);
      margin: auto 0;
      span{
        padding-top: 5px;
        margin-right: 60px;
        font-size: 14px;
        display: block;
        margin-bottom: 5px;
      }
      p{
        margin-top: 2px;
        font-size: 12px;
        color: #969696;
      }
    }
  }
`

export const WriterFooter = styled.div`
  padding: 7px 7px 7px 12px;
  left: 0;
  width: 90%;
  font-size: 13px;
  color: #787878;
  background-color: #f7f7f7;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  margin: 10px auto;
  text-align:center;
`